package com.tangly.codeing.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注入mybatis拦截器
 * @author tangbing
 * @date 2019/1/16 11:47
 */
@Configuration
@MapperScan("com.tangly.codeing.dao")
public class MybatisPlusConfig {
    @Bean
    public MybatisSqlInterceptor mybatisSqlInterceptor(){
        return new MybatisSqlInterceptor();
    }
}
